package com.kurumi.service.impl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.kurumi.mapper.DicMapper;
import com.kurumi.service.DicService;

@Service
public class DicServiceImpl implements DicService {

	@Autowired
	private DicMapper dicMapper;

	@Transactional(readOnly = true)
	@Override
	public List<Map<String, Object>> getDicList(String tableName) {

		return dicMapper.getDicInfo(tableName);
	}

	@Transactional(readOnly = true)
	@Override
	public String getDicNameByCode(String tableName, String code) {
		return dicMapper.getNameByCode(tableName,code);
	}



}
